
console.log(__filename, __dirname)

var reg = /http:\/\/localhost:8089\/(?<name>.+)\.do(?<query>\?.*)?/

var url1 = 'http://localhost:8089/user/get_user_info.do';
var url2 = 'http://localhost:8089/product/list.do?categoryId=100012&orderBy=default&pageNum=1&pageSize=20';


console.log(url1.match(reg));
console.log(url2.match(reg));
